﻿package mortal.game.view.mainUI.zazen
{
    import com.mui.controls.*;
    import flash.events.*;
    import mortal.common.*;
    import mortal.game.manager.*;
    import mortal.game.scene3D.player.entity.*;

    public class ZazenModule extends GSprite
    {
        private var _btnDobule:GButton;
        public var isShowing:Boolean = false;

        public function ZazenModule()
        {
            return;
        }// end function

        public function get isAutoReply() : Boolean
        {
            if (!ZazenInviteWin.hasInstance())
            {
                return false;
            }
            return ZazenInviteWin.instance.isAutoReply;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            return;
        }// end function

        private function clickDoubleHandler(event:MouseEvent) : void
        {
            ZazenInviteWin.instance.show();
            return;
        }// end function

        public function hide() : void
        {
            this.isShowing = false;
            DisplayUtil.removeMe(this);
            return;
        }// end function

        public function show(param1:int = 0, param2:int = 0) : void
        {
            this.x = RolePlayer.instance.stagePointX;
            this.y = RolePlayer.instance.stagePointY;
            LayerManager.uiLayer.addChild(this);
            this.isShowing = true;
            return;
        }// end function

    }
}
